package com.easy.base.api.model.dto;

import java.util.List;

import com.easy.base.api.model.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("ResponsePager")
public class ResultPager<E extends BaseEntity> {
    @JsonProperty(index = 1)
    @ApiModelProperty("分页数据")
    private List<E> list;

    @JsonProperty(index = 2)
    @ApiModelProperty("当前页码")
    private long current;

    @JsonProperty(index = 3)
    @ApiModelProperty("每页条目数量")
    private long pageSize;

    @JsonProperty(index = 4)
    @ApiModelProperty("总数")
    private long total;
}
